﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using OnTheWay.Models;

namespace OnTheWay
{
    [AttributeUsage(AttributeTargets.Property)]
    public sealed class DataBaseMemberAttribute : Attribute
    {
        public Type Type { get; set; }

        public Type EnumType { get; set; }

        public bool NotNullable { get; set; }

        public int Length { get; set; }

        public bool IsLazy { get; set; }

        public bool IsPrimaryKey { get; set; }

        public string Detail { get; set; }

        public DataBaseMemberAttribute(Type Type)
        {
            this.Type = Type;
        }
        public static Object Null;
    }
}
